#include <string>
#include <iostream>
#include <thread>
std::string a = "test";
int main() {
	auto b = [&]() {
		while (true)
		{
			std::cout << a << std::endl;
		}
	};
	for (int i = 0; i < 128; i++) {
		std::thread c(b);
		c.detach();
	}
	system("pause");
}